﻿using System;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class Service : BusinessObject
	{
        public Service()
        {
            AddRule(new ValidateMandatory("ServiceCode"));
            AddRule(new ValidateMandatory("Price"));
            AddRule(new ValidateMandatory("ServiceCategoryCode"));
      
      
        }
        public string ServiceCode { get; set; }
        public string ServiceCategoryCode { get; set; }
        public string ServiceDescription { get; set; }
        public decimal Price { get; set; }
	}
}


